package com.xm.gateway;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import reactivefeign.spring.config.EnableReactiveFeignClients;

@MapperScan("com.xm.*.module.*.mapper")
@SpringBootApplication(scanBasePackages = {"com.xm"},exclude = { DataSourceAutoConfiguration.class })
@EnableDiscoveryClient
@EnableFeignClients
@EnableReactiveFeignClients
public class BookGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(BookGatewayApplication.class, args);
        System.out.println("服务网关启动成功");
    }

}
